<?php
CSF::createSection($prefix, array(
    'parent' => 'basic',
    'title' => 'CoolPush',
    'icon' => 'fa fa-bullhorn',
    'description' => '',
    'fields' => array(
        array(
            'title'    => __('开启推送', 'msgbot_language'),
            'id'       => 'open_coolpush',
            'type'     => "switcher",
            'default'  => false,
        ),
        array(
            'dependency' => array('open_coolpush', '==', true),
            'title'   => __('coolpush秘钥', 'msgbot_language'),
            'id'      => 'coolpush_key',
            'desc'    => __('', 'msgbot_language'),
            'default' => '',
            'type'    => 'text',
        ),
        array(
            'dependency' => array('open_coolpush', '==', true),
            'title' => __('评论推送', 'msgbot_language'),
            'id' => 'comment_coolpush',
            'type' => "switcher",
            'default' => false,
        ),
        array(
            'dependency' => array('open_coolpush', '==', true),
            'title' => __('用户注册推送', 'msgbot_language'),
            'id' => 'register_coolpush',
            'type' => "switcher",
            'default' => false,
        ),
    ),
));